<template>
  <div>
    <el-result
      icon="error"
      title="500"
      sub-title="Ops! Server error occurs..."
    >
      <template #extra>
        <el-button
          type="primary"
          @click="back"
        >
          返回
        </el-button>
      </template>
    </el-result>
  </div>
</template>

<script lang="ts" setup>
import router from '@/router';

const back = () => {
  // 返回上一级
  router.back()
}

</script>